There are many applications available for debugging, and documentation is available separately for each.
When a screen is executing, the script engine is running through blocks of code associated with object events. If an error or breakpoint is encountered, the script engine stops processing and you are given the option to debug the script. The process of debugging involves showing you the currently executing script, pausing and stepping through lines at your own pace, and displaying and possibly changing the values of variables. Most debuggers will also allow you to see the call stack of methods leading to the current position in the script.